import { sum } from "./demo/math";
import "./demo/parse-lyric";
import "./css/style.css"; // 没有写任何导入时，会被tree-shaking，导致css不会被打包，如果要打包css。需要在package.json中指定sideEffects指定css

const message = "hello terser";

console.log(message);
console.log(sum(1, 2));

function foo() {
  console.log("foo");
}

foo();

const obj = {
  name: "why",
  bar() {
    return "bar";
  },
};

console.log(window.lyric);

const divEl = document.createElement("div");
divEl.className = "title";
divEl.textContent = "哈哈哈";
document.body.append(divEl);
